Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Was: Is rest_auth broken in Rails 2.2?

#26

No go, sorry for the incoveniense. I read the installation notes and the answer is there

Up till now I was using Rails 2.1.1 and restfull_authentication was working fine. I upgraded to Rails 2.2 and the activation code mechanism seems broken.

More specifically, the activation code saved in the user's record in the database is different than the one sent in the user's email.

thanks bill

Reported by bill · November 5th, 2008 @ 11:37 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. bill
    bill
    • Assigned user cleared.

    November 5th, 2008 @ 11:47 AM

  2. Daniel Choi
    Daniel Choi

    I encountered this problem today and it's caused by the activation_code being created twice when a user is created.

    A simple fix is to add this line to the generated code in user.rb

    def make_activation_code
      return if activation_code <--- added
      self.activation_code = Digest::SHA1.hexdigest( Time.now.to_s.split(//).sort_by {rand}.join )
    end
    
    

    December 10th, 2008 @ 08:04 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.